var DlgChatboxMain = _Panel.extend({
	
	generateContents: function()
	{
		return (
			'<div id="panel_main_logged">Logged in as ' + chat.getClsSession().getUsername() + ' (<a href="#" onClick="session_end();">logout</a>)</a></div>' +
			'<div id="panel_main_nickname"></div>' +
			'<div id="panel_main_status"></div>' +
			'<div id="synchronizing">Working</div>'
		);
		
	}, // end function generateContents
	
	update: function()
	{
		this.updateContents(this.generateContents());
		
	},
	
	initialize: function(main)
	{
		this.parent();
		
		this.main = main;
		
		// Set window settings
		this.WindowID = 'Chatbox_main';
		
		this.WindowTitle = 'Main window';
		
		this.WindowLoc = ['right', 'top'];
		this.WindowLocFixed = false;
		
		this.WindowSizeFixed = true;
		this.WindowSize = {x: 300, y: 100};
		
		this.WindowCloseByUser = false;
		
		this.WindowOnTop = null;
		
		this.WindowStyle = null;
		
		this.update();
		
	} // end function initialize
	
});

cimport_loaded('panels.Chatbox.Main');